<#include "/java_copyright.include">
<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
package ${basepackage}.dao;

import java.util.List;

public interface Dao<bean,query> {
	int countByExample(query example);
	
	int deleteByExample(query example);
	
	int deleteByPrimaryKey(Long id);
	
	int insert(bean record);
	
	int insertSelective(bean record);
	
	List<bean> selectByExample(query example);

	bean selectByPrimaryKey(Long id);

	List<bean> selectPageByExample(query example);
	
	int updateByPrimaryKeySelective(bean record);
	
	int updateByPrimaryKey(bean record);
}
